﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

namespace UFrame
{
    public class UIAnimaScaleClick : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
    {
        public float scaleAnima = 0.95f;

        public void OnPointerDown(PointerEventData eventData)
        {
            transform.localScale = new Vector3(scaleAnima, scaleAnima, scaleAnima);
        }

        public void OnPointerUp(PointerEventData eventData)
        {
            transform.localScale = Vector3.one;
        }
    }
}